home *** CD-ROM | disk | FTP | other *** search
- on finder
- if the number of chars in field "f_modelfield" < 1 then
- alert("You must enter a Model Number. If you don't know the model number click on a Product Category")
- abort()
- end if
- if (char 2 of field "f_modelfield" = "-") and (char 4 of field "f_modelfield" = "-") then
- put "." into char 2 of field "f_modelfield"
- put "0000" after char 2 of field "f_modelfield"
- put "." into char 8 of field "f_modelfield"
- end if
- if (char 2 of field "f_modelfield" = "-") and (char 5 of field "f_modelfield" = "-") then
- put "." into char 2 of field "f_modelfield"
- put "000" after char 2 of field "f_modelfield"
- put "." into char 8 of field "f_modelfield"
- end if
- if (chars(field "f_modelfield", 1, 1) = "2") and (chars(field "f_modelfield", 2, 2) = "2") then
- set cow to chars(field "f_modelfield", 3, 3)
- set cow2 to chars(field "f_modelfield", 8, 8)
- if (cow = "-") and (cow2 = "-") then
- put "." into char 3 of field "f_modelfield"
- put "0" after char 3 of field "f_modelfield"
- put "." into char 9 of field "f_modelfield"
- end if
- updateStage()
- end if
- if chars(field "f_modelfield", 1, 1) = 3 then
- set cow to chars(field "f_modelfield", 2, 2)
- set cow2 to chars(field "f_modelfield", 6, 6)
- if (cow = "-") and (cow2 = "-") then
- put "." into char 2 of field "f_modelfield"
- put "00" after char 2 of field "f_modelfield"
- put "." into char 8 of field "f_modelfield"
- end if
- updateStage()
- else
- set cow to chars(field "f_modelfield", 2, 2)
- set cow2 to chars(field "f_modelfield", 7, 7)
- set cow3 to chars(field "f_modelfield", 8, 8)
- if (cow = "-") and (cow2 = "-") then
- put "." into char 2 of field "f_modelfield"
- put "0" after char 2 of field "f_modelfield"
- put "." into char 8 of field "f_modelfield"
- end if
- if (cow = "-") and (cow3 = "-") then
- put "." into char 2 of field "f_modelfield"
- put "." into char 8 of field "f_modelfield"
- end if
- if (cow = "-") and (cow2 = EMPTY) then
- put "." into char 2 of field "f_modelfield"
- end if
- updateStage()
- end if
- set modtest to the number of chars in field "f_modelfield"
- if chars(field "f_modelfield", modtest - 1, modtest - 1) = "-" then
- put "." into char modtest - 1 of field "f_modelfield"
- end if
- set tester to field "f_modelfield"
- if (char 3 of tester = "0") and (char 4 of tester = "0") and (char 5 of tester = "0") then
- WHEELOPHANDENT()
- abort()
- end if
- VBSEARCHENT()
- abort()
- end
-
- on VBSEARCHENT
- global gDB, gtblOpDes, gtblWhDes, gtblcaste, gtblWheel, gTblca_fe, glinevar
- set the visible of sprite 34 to 1
- set the visible of sprite 35 to 1
- set the visible of sprite 36 to 1
- set the visible of sprite 37 to 1
- set the visible of sprite 38 to 1
- set the visible of sprite 39 to 1
- set the visible of sprite 40 to 1
- set the visible of sprite 41 to 1
- set the visible of sprite 42 to 1
- set the visible of sprite 43 to 1
- set the visible of sprite 44 to 1
- set the visible of sprite 45 to 1
- set the visible of sprite 46 to 1
- set the visible of sprite 47 to 1
- set the visible of sprite 48 to 1
- set the visible of sprite 49 to 1
- set the visible of sprite 50 to 1
- set the visible of sprite 51 to 1
- set the visible of sprite 52 to 1
- set the visible of sprite 53 to 1
- set the visible of sprite 54 to 1
- set the visible of sprite 55 to 1
- set the visible of sprite 56 to 1
- set the visible of sprite 57 to 1
- set the visible of sprite 58 to 1
- set the visible of sprite 59 to 1
- set the visible of sprite 60 to 1
- set the visible of sprite 61 to 1
- set the visible of sprite 62 to 1
- set the visible of sprite 63 to 1
- set the visible of sprite 64 to 1
- set the visible of sprite 65 to 1
- set the visible of sprite 66 to 1
- set the visible of sprite 67 to 1
- set the visible of sprite 68 to 1
- set the visible of sprite 69 to 1
- set the visible of sprite 70 to 1
- set the visible of sprite 71 to 1
- set the visible of sprite 72 to 1
- set the visible of sprite 73 to 1
- set the visible of sprite 74 to 1
- set the visible of sprite 75 to 1
- set the hilite of cast "b_tg1" to 0
- set the hilite of cast "b_tg2" to 0
- set the hilite of cast "b_brk3" to 0
- set the hilite of cast "b_fsi" to 0
- set the hilite of cast "b_DC1" to 0
- set the hilite of cast "b_SEAL" to 0
- set the hilite of cast "b_BRK2" to 0
- set the hilite of cast "b_BRK4" to 0
- set the hilite of cast "b_BRK6" to 0
- set the hilite of cast "b_BRK1" to 0
- set the hilite of cast "b_BRK1b" to 0
- set the hilite of cast "b_AX1" to 0
- set the hilite of cast "b_AX2" to 0
- set the hilite of cast "b_NT1" to 0
- set the hilite of cast "b_lpbrake" to 0
- set the hilite of cast "b_wb29" to 0
- set the hilite of cast "b_wb19" to 0
- set the hilite of cast "b_NT2" to 0
- set the hilite of cast "b_grf1" to 0
- set the hilite of cast "b_grf2" to 0
- set the hilite of cast "b_grf3" to 0
- set the hilite of cast "b_grw1" to 0
- set the hilite of cast "b_grw2" to 0
- set the hilite of cast "b_grw3" to 0
- set the hilite of cast "b_brk1b" to 0
- set the hilite of cast "b_mtg51" to 0
- set the hilite of cast "b_mtg61" to 0
- set the hilite of cast "b_mtg62" to 0
- set the hilite of cast "b_mtg63" to 0
- set the hilite of cast "b_mtg63" to 0
- set the hilite of cast "b_HeatTreated" to 0
- set the hilite of cast "b_wb2" to 0
- set the hilite of cast "b_wb01" to 0
- set the hilite of cast "b_wb01b" to 0
- set the hilite of cast "b_wsr1" to 0
- set the hilite of cast "b_wsr2" to 0
- set the hilite of cast "b_wsr3" to 0
- put field "f_modelfield" into field "modnum"
- put field "modnum"
- if (chars(field "modnum", 1, 2) = "69") or (chars(field "modnum", 1, 2) = "66") then
- OTHERHAND()
- abort()
- end if
- if chars(field "modnum", 1, 1) = "9" then
- OTHERHAND()
- abort()
- end if
- put mSetCriteria(gtblcaste, "CA_MOD", "=", field "modnum")
- put mSelect(gtblcaste)
- set ctester to mSelectCount(gtblcaste)
- put mSetCriteria(gtblWheel, "WH_MOD", "=", field "Tblcaste,WH_MOD")
- put mSelect(gtblWheel)
- put mSelectCount(gtblWheel)
- put mSetCriteria(gTblca_fe, "DESCCA", "=", field "Tblcaste,DESCRIP")
- put mSelect(gTblca_fe)
- if ctester < 1 then
- play frame "wrong"
- abort()
- end if
- put field "Tblcaste,CASTER_PIC" into field "maincasterphoto"
- put field "Tblcaste,DIM_PIC" into field "maincastdimphoto"
- put field "Tblcaste,STEM" into field "mainmounting"
- put field "Tblcaste,DESCRIP" into field "casterdeshead"
- put chars(field "modnum", 1, 2)
- if chars(field "modnum", 1, 2) = "32" then
- play frame "speca"
- abort()
- end if
- if char 1 of field "Tblcaste,CA_MOD" = "1" then
- if field "Tblcaste,STEM" contains "Expanding" then
- play frame "1exadmt"
- abort()
- end if
- if field "Tblcaste,STEM" contains "Square" then
- play frame "1square"
- abort()
- end if
- if field "Tblcaste,STEM" contains "Thread" then
- set temp to field "Tblcaste,CAPACITY"
- if temp < 100 then
- play frame "1thread"
- abort()
- end if
- end if
- if field "Tblcaste,STEM" contains "Grip" then
- set temp to field "Tblcaste,CAPACITY"
- if temp < 100 then
- play frame "1grip75"
- abort()
- else
- play frame "1grip145"
- abort()
- end if
- end if
- if field "tblwheel,TG_OP" contains "TG2" then
- if field "tblcaste,DIAMETER" = "5" then
- if field "tblcaste,WHEELDES" contains "Performa" then
- play frame "1optiond"
- abort()
- end if
- else
- play frame "1optionb"
- abort()
- end if
- end if
- if field "tblwheel,TG_OP" contains "TG1" then
- play frame "1optionc"
- abort()
- end if
- if field "tblcaste,BRK_OP" contains "BRK3" then
- play frame "1optione"
- abort()
- end if
- play frame "1optiona"
- abort()
- end if
- if char 1 of field "Tblcaste,CA_MOD" contains "2" then
- if (field "mtmodnum" contains "02") or (field "mtmodnum" contains "04") then
- play frame "specb"
- abort()
- end if
- end if
- if char 1 of field "Tblcaste,CA_MOD" contains "2" then
- if field "Tblcaste,DESCRIP" contains "Stainless" then
- if field "tblwheel,TG_OP" contains "TG2" then
- play frame "2soptiona"
- abort()
- else
- play frame "2soptionb"
- abort()
- end if
- end if
- if field "Tblcaste,DESCRIP" contains "LoPro Swivel" then
- if field "tblcaste,DIAMETER" = 3 then
- if field "tblcaste,BRK_OP" contains "brake" then
- play frame "2soptionc"
- abort()
- else
- play frame "speca"
- abort()
- end if
- else
- play frame "speca"
- abort()
- end if
- end if
- if field "Tblcaste,DESCRIP" contains "LoPro Rigid" then
- play frame "speca"
- abort()
- end if
- if field "Tblcaste,STEM" contains "Expanding" then
- play frame "2exadmt"
- abort()
- end if
- if field "Tblcaste,STEM" contains "Grip" then
- play frame "2gripmt"
- abort()
- end if
- if field "Tblcaste,STEM" contains "Straight" then
- play frame "2threadmt"
- abort()
- end if
- if field "Tblcaste,STEM" contains "Square" then
- play frame "2sqrmt"
- abort()
- end if
- if field "Tblcaste,STEM" contains "Plate" then
- if field "Tblcaste,STEM" contains "Swivel" then
- play frame "2swimt"
- abort()
- end if
- end if
- if field "tblcaste,BRK_OP" contains "BRK6" then
- if (field "tblwheel,TG_OP" contains "TG1") and (field "tblwheel,TG_OP" contains "TG2") then
- play frame "2optiona"
- abort()
- end if
- if field "tblwheel,TG_OP" contains "TG1" then
- play frame "2optionb"
- abort()
- end if
- if field "tblwheel,TG_OP" contains "TG2" then
- play frame "2optionc"
- abort()
- end if
- play frame "2optiond"
- abort()
- end if
- if field "tblcaste,BRK_OP" contains "BRK4" then
- if (field "tblwheel,TG_OP" contains "TG1") and (field "tblwheel,TG_OP" contains "TG2") then
- play frame "2optione"
- abort()
- end if
- if field "tblwheel,TG_OP" contains "TG1" then
- play frame "2optionf"
- abort()
- end if
- if field "tblwheel,TG_OP" contains "TG2" then
- play frame "2optiong"
- abort()
- end if
- play frame "2optionh"
- abort()
- end if
- if field "tblcaste,BRK_OP" contains "BRK2" then
- if (field "tblwheel,TG_OP" contains "TG1") and (field "tblwheel,TG_OP" contains "TG2") then
- play frame "2optioni"
- abort()
- end if
- if field "tblwheel,TG_OP" contains "TG1" then
- play frame "2optionj"
- abort()
- end if
- if field "tblwheel,TG_OP" contains "TG2" then
- play frame "2optionk"
- abort()
- end if
- play frame "2optionl"
- abort()
- end if
- if field "tblcaste,BRK_OP" contains "BRK1" then
- if (field "tblwheel,TG_OP" contains "TG1") and (field "tblwheel,TG_OP" contains "TG2") then
- play frame "2optionm"
- abort()
- end if
- if field "tblwheel,TG_OP" contains "TG1" then
- play frame "2optionn"
- abort()
- end if
- if field "tblwheel,TG_OP" contains "TG2" then
- play frame "2optiono"
- abort()
- end if
- play frame "2optionp"
- abort()
- end if
- if field "tblcaste,OTHER_OP" contains "DC1" then
- if (field "tblwheel,TG_OP" contains "TG1") and (field "tblwheel,TG_OP" contains "TG2") then
- play frame "2optionq"
- abort()
- end if
- if field "tblwheel,TG_OP" contains "TG1" then
- play frame "2optionr"
- abort()
- end if
- if field "tblwheel,TG_OP" contains "TG2" then
- play frame "2options"
- abort()
- end if
- play frame "2optiont"
- abort()
- end if
- if not (field "tblcaste,OTHER_OP" = "DC1") then
- if (field "tblwheel,TG_OP" contains "TG1") and (field "tblwheel,TG_OP" contains "TG2") then
- play frame "2optionu"
- abort()
- end if
- if field "tblwheel,TG_OP" contains "TG1" then
- play frame "2optionv"
- abort()
- end if
- if field "tblwheel,TG_OP" contains "TG2" then
- play frame "2optionw"
- abort()
- end if
- play frame "2optionx"
- abort()
- end if
- end if
- if char 1 of field "Tblcaste,CA_MOD" = "3" then
- if (field "mtmodnum" contains "07") or (field "mtmodnum" contains "09") then
- play frame "cargocop"
- abort()
- end if
- end if
- if char 1 of field "Tblcaste,CA_MOD" = 3 then
- if field "tblcaste,MT_OP" contains "MTG7" then
- play frame "3stem"
- abort()
- end if
- if field "tblcaste,BRK_OP" contains "BRK1" then
- if field "tblwheel,TG_OP" contains "TG1" then
- play frame "3optiona"
- abort()
- else
- play frame "3optionb"
- abort()
- end if
- end if
- if field "tblwheel,TG_OP" contains "TG1" then
- play frame "3optionc"
- abort()
- else
- play frame "3optiond"
- abort()
- end if
- end if
- if char 1 of field "Tblcaste,CA_MOD" = "4" then
- if field "casterdeshead" contains "pneumatic" then
- play frame "speca"
- abort()
- end if
- if field "casterdeshead" contains "1-1/2" then
- play frame "4amt"
- abort()
- end if
- if field "casterdeshead" contains "2" then
- play frame "4bmt"
- abort()
- end if
- if field "casterdeshead" contains "IMPAK" then
- play frame "4bmt"
- abort()
- end if
- end if
- if (char 1 of field "Tblcaste,CA_MOD" = "5") or (char 1 of field "Tblcaste,CA_MOD" = "6") then
- if field "tblcaste,BRK_OP" contains "BRK1" then
- if field "tblwheel,TG_OP" contains "TG1" then
- if field "tblwheel,TG_OP" contains "TG2" then
- play frame "5optiona"
- abort()
- else
- play frame "5optionb"
- abort()
- end if
- end if
- if field "tblwheel,TG_OP" contains "TG2" then
- play frame "5optionc"
- abort()
- else
- play frame "5optiond"
- abort()
- end if
- end if
- if field "tblcaste,OTHER_OP" contains "MTG51" then
- if field "tblwheel,TG_OP" contains "TG1" then
- if field "tblwheel,TG_OP" contains "TG2" then
- play frame "5optione"
- abort()
- else
- play frame "5optionf"
- abort()
- end if
- if field "tblwheel,TG_OP" contains "TG2" then
- play frame "5optiong"
- abort()
- else
- play frame "5optionh"
- abort()
- end if
- end if
- end if
- if field "tblwheel,TG_OP" contains "TG1" then
- if field "tblwheel,TG_OP" contains "TG2" then
- play frame "5optioni"
- abort()
- else
- play frame "5optionj"
- abort()
- end if
- if field "tblwheel,TG_OP" contains "TG2" then
- play frame "5optionl"
- abort()
- else
- play frame "5optionl"
- abort()
- end if
- end if
- play frame "5optionl"
- abort()
- end if
- if char 1 of field "Tblcaste,CA_MOD" = 7 then
- if chars(field "Tblcaste,CA_MOD", 6, 6) contains "7" then
- play frame "7impakmt"
- abort()
- end if
- if field "Tblcaste,OTHER_OP" contains "MTG51" then
- play frame "7boptiona"
- abort()
- end if
- if chars(field "Tblcaste,CA_MOD", 7, 7) contains "9" then
- play frame "7aoptiona"
- abort()
- else
- play frame "7aoptionb"
- end if
- end if
- if char 1 of field "Tblcaste,CA_MOD" = 8 then
- play frame "7impakmt"
- abort()
- end if
- end
-
- on WHEELOPHANDENT
- global gtblWheel, glinevar
- set the hilite of cast "b_tg1" to 0
- set the hilite of cast "b_tg2" to 0
- set the hilite of cast "b_wb01" to 0
- set the hilite of cast "b_wb01b" to 0
- set the hilite of cast "b_wb625" to 0
- set the hilite of cast "b_wb750" to 0
- set the hilite of cast "b_wb11" to 0
- set the hilite of cast "b_wb11b" to 0
- set the hilite of cast "b_wsr3" to 0
- set the hilite of cast "b_wb09" to 0
- set the hilite of cast "b_wb09b" to 0
- put field "f_modelfield" into field "modnum"
- put field "modnum" into field "wheelmodnum"
- put mSetCriteria(gtblWheel, "WH_MOD", "=", field "wheelmodnum")
- put mSelect(gtblWheel)
- put mSelectCount(gtblWheel)
- if mSelectCount(gtblWheel) < 1 then
- play frame "wrong"
- abort()
- end if
- put field "tblwheel,DESC" into field "casterdeshead"
- put field "tblwheel,W_PHOTO" into field "maincasterphoto"
- if field "tblwheel,BEAR_OP" contains "WB625" then
- play frame "woptione"
- abort()
- end if
- if field "tblwheel,BEAR_OP" contains "WB11" then
- if field "tblwheel,TG_OP" contains "TG1" then
- if field "tblwheel,TG_OP" contains "TG2" then
- play frame "woptionf"
- abort()
- else
- play frame "woptiong"
- abort()
- end if
- end if
- if field "tblwheel,TG_OP" contains "TG2" then
- play frame "woptionh"
- abort()
- else
- play frame "woptioni"
- abort()
- end if
- end if
- if (field "tblwheel,WASHER_OP" contains "WSR3") and (char 1 of field "wheelmodnum" = "7") then
- if field "tblwheel,BEAR_OP" contains "WB09" then
- if field "tblwheel,TG_OP" contains "TG1" then
- if field "tblwheel,TG_OP" contains "TG2" then
- play frame "woptionj"
- abort()
- else
- play frame "woptionk"
- abort()
- end if
- end if
- if field "tblwheel,TG_OP" contains "TG2" then
- play frame "woptionl"
- abort()
- else
- play frame "woptionm"
- abort()
- end if
- end if
- end if
- if field "tblwheel,BEAR_OP" contains "WB09" then
- if field "tblwheel,TG_OP" contains "TG1" then
- if field "tblwheel,TG_OP" contains "TG2" then
- play frame "woptionn"
- abort()
- else
- play frame "woptiono"
- abort()
- end if
- end if
- if field "tblwheel,TG_OP" contains "TG2" then
- play frame "woptionp"
- abort()
- else
- play frame "woptionq"
- abort()
- end if
- end if
- if field "tblwheel,BEAR_OP" contains "WB01" then
- if field "tblwheel,TG_OP" contains "TG1" then
- if field "tblwheel,TG_OP" contains "TG2" then
- play frame "woptiona"
- abort()
- else
- play frame "woptionb"
- abort()
- end if
- end if
- if field "tblwheel,TG_OP" contains "TG2" then
- play frame "woptionc"
- abort()
- else
- play frame "woptiond"
- abort()
- end if
- end if
- play frame "specwheel"
- abort()
- end
-